//
//  BSNodeCocos2dx.h
//  Cocos2dXTest
//
//  Created by bean on 13/4/30.
//  Copyright 2013年 __MyCompanyName__. All rights reserved.
//

#ifndef Cocos2dXTest_BSNodeCocos2dx_h
#define Cocos2dXTest_BSNodeCocos2dx_h

#include "cocos2d.h"

class BSNodeCocos2dx : public cocos2d::CCNode
{
private:
    const char* m_race;
    const char* m_weapon;
    const char* m_shield;
    const char* m_hat;
public:
    BSNodeCocos2dx(void);
    virtual ~BSNodeCocos2dx(void);
    virtual bool init(void);
    void setSpriterData(const char* dataFn);
    float playAnimation(const char* animationName, bool isRepeat, cocos2d::CCCallFunc* fun);
    CREATE_FUNC(BSNodeCocos2dx);
    void* m_spriteData;
    cocos2d::CCArray* m_sprites;
    void clearSprite();
    void stopActSprite();
    void setRece(const char* race);
    void setShield(const char* Shield);
    void setWeapon(const char* weapon);
    void setHat(const char* hat);
};

#endif
